package com.center.biz.impl;

import com.center.api.model.EduUserLoginLog;
import com.center.api.remote.RemoteEduUserLoginLogService;
import com.center.biz.dao.EduUserLoginLogMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(version = "1.0",interfaceClass = RemoteEduUserLoginLogService.class)
public class RemoteEduUserLoginLogServiceImpl implements RemoteEduUserLoginLogService{

    @Autowired
    private EduUserLoginLogMapper eduUserLoginLogMapper;

    @Override
    public int save(EduUserLoginLog eduUserLoginLog) {
        return eduUserLoginLogMapper.insertSelective(eduUserLoginLog);
    }

    @Override
    public int update(EduUserLoginLog eduUserLoginLog) {
        return eduUserLoginLogMapper.updateByPrimaryKeySelective(eduUserLoginLog);
    }

    @Override
    public int delete(int id) {
        return eduUserLoginLogMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<EduUserLoginLog> select(EduUserLoginLog eduUserLoginLog) {
        return null;
    }

    @Override
    public EduUserLoginLog getById(int id) {
        return eduUserLoginLogMapper.selectByPrimaryKey(id);
    }
}
